package Month07.day15;

public class Teacher extends Person {
    private String sex;

    public Teacher() {
    }

    public Teacher(String sex) {
        this.sex = sex;
    }

    public Teacher(String age, String name, String joinDate, String sex) {
        super(age, name, joinDate);
        this.sex = sex;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
    public void sendM(){
        super.sendMessage();
        System.out.println("发中文");
    }
}